<template>
  <div class="header">
    <div>
      <h2>数据录入模块</h2>
      <label for="assessment-period">选择评估周期（天数）：</label>
      <select v-model="selectedAssessmentPeriod" id="assessment-period">
        <option value="7">7 天</option>
        <option value="14">14 天</option>
        <option value="30">30 天</option>
      </select>
      <button @click="saveAssessmentPeriod">保存</button>
    </div>
  </div>
</template>

<script>
export default {
  data() {
    return {
      selectedAssessmentPeriod: 7,
    };
  },
  methods: {
    saveAssessmentPeriod() {
      console.log("保存评估周期：", this.selectedAssessmentPeriod);
      alert("评估周期已保存！");
    },
  },
};
</script>

<style>
#top {
  height: 8%;
  border-bottom: 1px solid #162c52;
}
#top .pageTit {
  height: 100%;
  position: relative;
}
#top .pageTit a {
  display: block;
  width: 50%;
  height: 44px;
  background-size: 100% 100%;
  line-height: 44px;
  text-align: center;
  font-size: 18px;
  color: #00deff;
  position: absolute;
  top: 50%;
  margin-top: -22px;
}
#top .topLogo {
  text-align: center;
  height: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  font-size: 40px;
  background: linear-gradient(0deg, #0095d6, #46daff);
  background-size: cover;
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-fill-color: transparent;
  font-weight: bolder;
  cursor: text;
}

#top .topBar {
  height: 100%;
}
#top .topBar .topTime {
  padding-top: 18px;
  color: #fff;
  text-align: right;
}
#top .topBar .company {
  position: relative;
}
#top .topBar .company h3 {
  text-align: right;
  color: #02b6d4;
  height: 28px;
  line-height: 28px;
  font-size: 16px;
  padding: 0 15px 0 28px;
  cursor: pointer;
  position: relative;
}
#top .topBar .company h3:before {
  display: block;
  content: "";
  width: 20px;
  height: 20px;
  /* background: url(../images/s_ico1.png) no-repeat; */
  background-size: 100% 100%;
  position: absolute;
  left: 0;
  top: 3px;
}
#top .topBar .company h3:after {
  display: block;
  content: "";
  width: 7px;
  height: 4px;
  /* background: url(../images/s_ico2.png) no-repeat; */
  position: absolute;
  right: 0;
  top: 10px;
}
#top .topBar .company .dropdown {
  position: absolute;
  top: 28px;
  right: -10px;
  padding: 6px 10px;
  background: #00deff;
  border-radius: 6px;
  min-width: 100px;
  display: none;
}
#top .topBar .company:hover .dropdown {
  display: block;
}
#top .topBar .company .dropdown a {
  display: block;
  text-align: center;
  line-height: 24px;
  margin: 4px 0;
}
</style>
